import java.util.Collections;
import java.util.Vector;


public class GA
{
	private static int popSize = 100;
	public static void main(
			String[] args)
	{
		
		double[][] inputs = {{0,0,1},
	  			 {0,1,1},
	  			 {1,0,1},
	  			 {1,1,1}};

		double[][] targets = {{0},{1},{1},{0}};

		
		Vector<IGenome> population = new Vector<IGenome>();
		for(int i=0;i<popSize;i++){
			population.add(new NeuralNetGenome(inputs, targets));
		}
		System.out.println(population);
		Collections.sort(population);
		System.out.println(population);

		//for(int i=0;i<10;i++) population.get(0).mutate();
		System.out.println(population.get(0));
		
	}
}
